package com.lanou.mapper;

import com.lanou.bean.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dllo on 18/2/26.
 */
public interface BlogMapper {
    int addBlog(@Param(value = "title") String title,
                @Param(value = "desc") String desc,
                @Param(value = "content") String content,
                @Param(value = "userId") int userId);

    List<Blog> searchAllBlog();

    int deleteBlog(@Param(value = "bid") int bid);

    Blog seeMore(@Param(value = "bid") int bid);

    List<Blog> limitSerch(@Param(value = "page") int page);

    List<Blog> SearchByKeyWord(@Param(value = "keyword") String keyword);
}
